import request from '@ey-utils/utils/services/request';
import api from '../api';

/**
 *  King
 */
export const createMmCate = async (values: any) => {
  return await request(api.metaMetaCateCreate, {
    method: 'post',
    data: values
  }).then(res => {
    return res;
  });
};

export const detailMmCate = async (code: string) => {
  return await request(api.metaMetaCateDetail, {
    method: 'get',
    params: { code, }
  }).then(res => {
    return res;
  });
};

export const updateMmCate = async (values: any) => {
  return await request(api.metaMetaCateUpdate, {
    method: 'post',
    data: values
  }).then(res => {
    return res;
  });
};

export const removeMmCate = async (code: string) => {
  return await request(api.metaMetaCateRemove, {
    method: 'get',
    params: { code, }
  }).then(res => {
    return res;
  });
};
export const listMetaMetaCate = async () => {
  return await request(api.metaMetaCateList, {
    method: 'get',
  }).then(res => {
    return res;
  });
};
